<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="cn.xinzhi.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 侯侯
  Date: 2021/12/13
  Time: 9:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        Map<String,String> testmap = new HashMap<String, String>();
        testmap.put("one","111");
        testmap.put("two","222");

        User u = new User();
        u.setUsername("张三");

        request.setAttribute("test1",u);

//        request.setAttribute("test1","request");
//        pageContext.setAttribute("test1","pageContext");
//        session.setAttribute("test1","session");
//        application.setAttribute("test1","application");
    %>
    ${test1.username}
</body>
</html>
